#how to find wx

#route one
#cmake FindwxWidget.cmake
#private
#interface
#find_package
#path
#find_package命令到底找什么：如果没找到Find<name>.cmake这样的文件，会继续寻找 <Name>Config.cmake 或者 <lower-case-name>-config.cmake ，它们是假定库会安装的文件（但是目前还没有多少库会安装它们）。不做检查，直接包含安装的库的固定值。
#前面的称为模块模式，后面的称为配置模式。
#https://www.cnblogs.com/welhzh/p/7466640.html
find_package(wxWidgets COMPONENTS core base OPTIONAL_COMPONENTS net)
if(wxWidgets_FOUND)
    #include(${wxWidgets_USE_FILE})
    # and for each of your dependent executable/library targets:
    #target_link_libraries(<YourTarget> ${wxWidgets_LIBRARIES})
    #C:/Program Files/CMake/share/cmake-3.19/Modules/UsewxWidgets.cmake
    message("wxWidgets_USE_FILE: ${wxWidgets_USE_FILE}")
    message("wxWidgets_LIBRARIES: ${wxWidgets_LIBRARIES}")
    message("wxWidgets_INCLUDE_DIRS: ${wxWidgets_INCLUDE_DIRS}")
    message( WARNING "Use wxWidgets_LIBRARIES, wxWidgets_INCLUDE_DIRS to reference them" )
endif()

#route two